home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / wf314.zip / WF311DOC.ZIP / DOCS / WF.007 < prev    next >
Text File  |  1992-01-31  |  12KB  |  297 lines

  1. .f3                              - # -              Chapter 7 - Search & Replace
  2. .rm70
  3. .tc
  4. .tc1
  5. .tc 7. FINDING AND REPLACING TEXT .........................#
  6. CHAPTER 7   FINDING AND REPLACING TEXT
  7.  
  8. .irFinding;Finding - see Search & Replace
  9. .imSearch & Replace
  10. Word Fugue can find, find and replace (or delete), or find and apply a
  11. macro to any word or phrase (string of characters) in a file.
  12.  
  13. The commands are:
  14.  
  15.        Ctrl Q F         - Finds a string
  16.        Ctrl Q A         - Finds a string and replaces it with another
  17.        Ctrl Q M         - Finds a string and applies a macro at the
  18.                           cursor position
  19.        Ctrl L           - Repeat the last fine or replace operation
  20. .ix   Next occurrence (^L)
  21.  
  22. .Tc    Search .............................................#
  23. Search
  24.  
  25. .ix   Search (F5 or ^KF)
  26. First, you must tell Word Fugue that you wish to search for text. You
  27. can do this in any of 3 ways:
  28.  
  29.    (i)   Press function key F5
  30.  
  31. or (ii)  Activate the pull down menu. Press S for Search,
  32.          followed by F for Find
  33.  
  34. or (iii) Press CTRL Q F (this is a WordStar command)
  35.  
  36. A pop up window will appear on the screen with the words Search for:
  37.  
  38.  
  39.     ╔═════════════════════════ Search for ════════════════════════════╗
  40.     ║                                                                 ║
  41.     ║                                                                 ║
  42.     ╚═════════════════════════════════════════════════════════════════╝
  43.  
  44.  
  45.                         Fig 7.1 - Search Prompt
  46. .tc1 Fig 7.1 - Search Prompt ...............................#
  47.  
  48.  
  49. Type in the letters you wish to find and press return. Word Fugue will
  50. prompt you for options for the command Options:
  51.  
  52.  
  53.     ╔══════════════════════ Options (UBGWL) ══════════════════════════╗
  54.     ║beggin                                                           ║
  55.     ║                                                                 ║
  56.     ╚═════════════════════════════════════════════════════════════════╝
  57.  
  58.  
  59.                         Fig 7.2 - Search Options
  60. .tc1 Fig 7.2 - Search Options ..............................#
  61.  
  62.  
  63. .CP15
  64. The options available are:
  65. .ix   Options (Search)
  66.  
  67. .ix   Ignore Case
  68.    U    Upper case - treat the string to search for and the file
  69.         as if they are all in upper case. Thus and will match
  70.         and  AND  anD  AnD  aNd  . If you do not enter this
  71.         option then the case of the letters will be important.
  72.         This means that and will only match and
  73.  
  74. .ix   Backwards
  75.    B    Backward - This tells Word Fugue to search backwards from the
  76.         cursor position. If you do not specify this, then Word Fugue
  77.         will search forward.
  78.  
  79. .ix   Whole words only
  80.    W    Word only - This tells Word Fugue to search for whole words
  81.         only, and not to match bits of words
  82.         Thus and will match and only.
  83.         If you do not specify this, and will match with
  84.         band  sand andalusium and so on.
  85.  
  86. .ix   Marked Block
  87.    L    Locally - this means that Word Fugue will search the marked
  88.         block as long as it is visible.
  89.  
  90. .ix   nth Occurrence
  91.    n    Where n is an integer. Search for the nth occurrence of the
  92.         string.
  93.  
  94. .ix   Global
  95.    G    Global search. For finds this means always start from the top
  96.         of the file.
  97.  
  98. Press enter when you have entered the options, and Word Fugue will
  99. search for the letters.
  100.  
  101. The cursor stops on the first occurrence of them. Press CTRL L to find
  102. the next occurrence (unless you used the G option). Keep pressing CTRL
  103. L once for each occurrence.
  104.  
  105. When Word Fugue stops finding the text, you will be informed:
  106.  
  107.  
  108.     ╔════════════════════════════════════════════════════╗
  109.     ║  Not found - Press ESC to continue                 ║
  110.     ╚════════════════════════════════════════════════════╝
  111.  
  112.  
  113. .cp5
  114. .Tc    Replacing text .....................................#
  115. Replacing text
  116.  
  117. .ix   Replace
  118. First, you must tell Word Fugue that you wish to replace text. You can
  119. do this in any of 3 ways:
  120.  
  121.    (i)   Press function key F6
  122.  
  123. or (ii)  Activate the pull down menu. Press S for Search,
  124.          followed by R for Replace
  125.  
  126. or (iii) Press CTRL Q A (this is a WordStar command)
  127.  
  128. .CP9
  129. A pop up window will appear on the screen with the word Search for
  130.  
  131.  
  132.     ╔═════════════════════════ Search for ════════════════════════════╗
  133.     ║                                                                 ║
  134.     ║                                                                 ║
  135.     ║                                                                 ║
  136.     ╚═════════════════════════════════════════════════════════════════╝
  137.  
  138.  
  139. Type in the letters and press return. Word Fugue will prompt with
  140. Replace. Type the letters you wish the to use for replacement.
  141. {.╬}
  142.  
  143. .cp10
  144.     ╔════════════════════════ Replace with ═══════════════════════════╗
  145.     ║beggin                                                           ║
  146.     ║begin                                                            ║
  147.     ║                                                                 ║
  148.     ╚═════════════════════════════════════════════════════════════════╝
  149.  
  150.  
  151.                         Fig 7.3 - Replace Prompt
  152. .tc1 Fig 7.3 - Replace Prompt ..............................#
  153.  
  154.  
  155. Word Fugue will then prompt you with Options
  156.  
  157.  
  158.     ╔════════════════════════ Options (UBGWLN) ═══════════════════════╗
  159.     ║beggin                                                           ║
  160.     ║begin                                                            ║
  161.     ║                                                                 ║
  162.     ╚═════════════════════════════════════════════════════════════════╝
  163.  
  164.  
  165. The options available are the same as for FIND above, with the
  166. following additions:
  167.  
  168. .ix   Options (Replace)
  169. .ir   Options (Replace) See also Search options
  170. .ix   Global
  171.    G    Global search - go to the top of the file, and search for all
  172.         occurrences, and replace them. You do not need to press CTRL L
  173.         for the next occurrence. If you also specified the B option,
  174.         then Word Fugue will go to the end of the file and search
  175.         backwards.
  176.  
  177. .ix   Without asking approval
  178.    N    Do not ask. The default when replacing is to ask you whether
  179.         you wish to replace this occurrence.
  180.  
  181.         If you specify N option, then Word Fugue will not ask you, but
  182.         will replace  every occurrence.
  183.  
  184.         If the N option is not specified, a prompt will occur each
  185.         time the search pattern is found. This prompt will provide the
  186.         following options:
  187.  
  188.         Y - replace this text and continue searching.
  189.         N - do Not replace, but continue searching.
  190.         A - replace this text and replace All others without prompting.
  191.         Q - do not replace, and Quit searching.
  192.  
  193. Press enter when you have typed in any options. (You do not need to
  194. type in options). The cursor jumps to the first occurrence of and
  195. replaces it with the new letters.
  196.  
  197.  
  198. .ixTIPS;   Speeding Global replace
  199. TIP - when doing a Global replace with the N option, Word Fugue still
  200.       shows you each occurrence as it replaces it. This takes time to
  201.       update the screen each time. If you wish to speed it up, and do
  202.       not want to see each occurrence as it is changed, press Page Up
  203.       or Page Down as Word Fugue is working. The screen will stop
  204.       updating until Word Fugue has finished the search and replace
  205.       operation.
  206.  
  207. .cp10
  208. .Tc    Find And Apply Macro ...............................#
  209. Find And Apply Macro
  210.  
  211. .ix   Apply Macro
  212. First, you must tell Word Fugue that you wish to replace text. You can
  213. do this in either of 2 ways.
  214.  
  215.    (i)  Activate the pull down menu. Press S for Search,
  216.         followed by U for Use Macro
  217.  
  218. or (ii) Press CTRL Q M
  219.  
  220. A pop up window will appear on the screen with the word Search for
  221.  
  222.  
  223.     ╔═════════════════════════ Search for ════════════════════════════╗
  224.     ║